﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TFSRestApiHelper
{
    public class WorkItemTypeAtrr
    {
        [JsonProperty("name")]
        public string name;
        [JsonProperty("description")]
        public string description;
        [JsonProperty("xmlForm")]
        public string xmlForm;
        [JsonProperty("fieldInstances")]
        public List<fieldInstance> fieldInstances;
        [JsonProperty("transitions")]
        public object transitions;
        [JsonProperty("_links")]
        public link _links;
        [JsonProperty("url")]
        public string url;

        public class fieldInstance
        {
            public string helpText;
            public string referenceName;
            public string name;
            public string url;
        }

        // Place for transitions

        public class link
        {
            [JsonProperty("self")]
            public selflink self;
        }

        public class selflink
        {
            [JsonProperty("href")]
            public string href;
        }
    }
}
